Repository navigation
[bugfix] ci: route unlisted python test modules to default core shard - #700
Merged
Merged
Conversation
david6666666
reviewed
Dec 5, 2026
david6666666
left a comment
Collaborator
There was a problem hiding this comment.
当前证据暂定 93/100,非批准分(范围 3、正确性 3、验证 2、主张证据 3、简洁度 3)。按真实文件树独立重算:169 个 Python 模块分到 110 core、26 agent-cli、33 media;后两组的文件列表没变,新增归入 core 的正好是 test_trace_job_queries.py 和 test_wait_outcome.py,没有重复或未分配。--list-shard 命令失败也不会再悄悄回退成无文件参数的 pytest。纯 CI 改动,无需产品截图。
同版 Release 还在跑。作者的 3,860 项是收集守恒,不是全部执行;待聚合审计验证各组实际执行和代表用例。小建议:同步改 docs/development/ci-failures.md,旧文仍要求每个新模块都手工登记,改成默认 core、特殊需求显式分组后就不会误导后续 PR。未重跑候选或投票。Dot,代表 @david6666666。
1 task
This was referenced Dec 5, 2026
This was referenced Dec 5, 2026
This was referenced Dec 5, 2026
This was referenced Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
corelist inscripts/ci/python_shards.jsonwith"default_shard": "core", keeping only the explicit heavy/domain assignments foragent-cli(26 files) andmedia(33 files).default_sharddynamically inscripts/ci/check_test_layers.py(discover_test_filesminus explicitly assigned shards) while rejecting missing/deleted explicit files, duplicates, and incomplete shard coverage.--list-shardoutput before looping in.github/workflows/release-checks.ymlso a shard-listing failure aborts immediately underset -e.test_repo_python_shards_manifest_covers_every_test_module_once) whenever concurrent or newly authored PRs addtests/test_*.pywithout manually editingscripts/ci/python_shards.json(seen onmainruns47460479983,47487899600, and47493153210fortests/test_ark_availability.py,tests/test_trace_job_queries.py, andtests/test_wait_outcome.py).Linked issue
Labels
Apply
type:bug(ortype:ci) andarea:ciperCONTRIBUTING.md.type:ci,area:ci)Test plan
d97639eef92999ce4e29f2baa9a657c9cf47944cagainst base4cd524ce5ddcd331ea47dd5bf494230f17f64014):pytest --basetemp=/tmp/od-ci-pytest-tmp tests/test_ci_layers.py tests/test_ci_scope.py -q-> passed (includes failing-before regression coverage for newly added test modules and missing explicit files).tests/test_ci_hardware.py,tests/test_ci_layers.py,tests/test_ci_profile.py,tests/test_ci_scope.py,tests/test_ci_security.py,tests/test_ci_summary.py) -> 218 passed (53.60s).--collect-onlyconservation audit viascripts/ci/check_test_layers.py --profile ... --shard-profiles ...-> 3,860 tests (core=2655,agent-cli=443,media=762), automatically absorbingtests/test_trace_job_queries.pyandtests/test_wait_outcome.pywith zero duplicates and zero missing cases.pre-commithooks (check yaml,check json,check python ast,actionlint) -> all passed.Release checksrun on this PR (python3-shard matrix +checks--require-executedshard conservation audit).4cd524ce5ddcd331ea47dd5bf494230f17f64014d97639eef92999ce4e29f2baa9a657c9cf47944cEvidence that it works
Visual evidence is N/A: CI-only shard resolution fix with no user-visible UI, media, or product runtime changes.
Previously failing on
main4cd524ce5ddcd331ea47dd5bf494230f17f64014(47493153210):test_repo_python_shards_manifest_covers_every_test_module_oncefailed becausetests/test_trace_job_queries.pyandtests/test_wait_outcome.pywere missing fromscripts/ci/python_shards.json.Local conservation receipt on this fix:
{"tests": 3860, "layers": {"ready": 3780, "merge": 68, "nightly": 12}, "unmarked": 3493, "capabilities": 18, "representative_cases": 152, "representative_outcomes": {"not_run": 152}, "browser_gate": 1, "shards": {"core": 2655, "agent-cli": 443, "media": 762}}Applicable evidence attached and visual N/A explained
Provider verification
Bilingual UI